import { Tabs } from "antd";
import { useState, useEffect } from "react";
import { useNavigate, NavLink } from "react-router-dom";
import "./cai.css";
import Jisuan from "../../components/jisuan/jisuan";
import Fenliu from "../../components/fenliu/fenliu";

function Cai() {
  const [cai,setCai] = useState(0)
  return (
    <div className="qw">
      <div className="ww">

        <div className="ww1" onClick={()=>{
          setCai(0)
        }}>纯分流功能</div>
        <div className="ww2" onClick={()=>{
          setCai(1)
        }}>分流+计算功能</div>

      </div>
      {cai?(
          <Jisuan></Jisuan>
      ):(
          <Fenliu></Fenliu>
      )}
    </div>
  );
}
export default Cai;
